from selenium.webdriver.common.by import By
from po_A3mall.Page.Page1 import Page1

class Page2(Page1):
    ms_loc = (By.XPATH, '/html/body/div[3]/div[2]/ul/li[4]/a')
    def ms(self):
        self.click(self.ms_loc)

    img_loc = (By.XPATH, '/html/body/div[5]/div[2]/div[2]/div[1]/ul/li[1]/div[1]/span/a/img')
    def img(self):
        self.click(self.img_loc)

    dy2_loc = (By.XPATH, '/html/body/div[4]/a[3]')
    def dy2(self):
        self.text(self.dy2_loc)

    buy_loc = (By.ID, 'buy-cart')
    def buy(self):
        self.click(self.buy_loc)

    address_loc = (By.ID, 'address-33')
    def address(self):
        self.click(self.address_loc)

    next_loc = (By.ID, 'order-button')
    def next(self):
        self.click(self.next_loc)

    dy3_loc = (By.CLASS_NAME, 'succe-ico')
    def dy3(self):
        self.text(self.dy3_loc)